package com.yequan.thread.lock.reentrantlock.multicontion;

public class Run {

    public static void main(String[] args) throws InterruptedException {
        MyService myService = new MyService();
        MyThreadA myThreadA = new MyThreadA(myService);
        myThreadA.setName("AAAAA");
        myThreadA.start();

        MyThreadB myThreadB = new MyThreadB(myService);
        myThreadB.setName("BBBBB");
        myThreadB.start();

        Thread.sleep(3000);
        myService.signalAll_A();
    }

}
